from django.shortcuts import render
from django.views import View
from .models import Goods
from .forms import GoodForm

# Create your views here.
class GoodView(View):
    def get(self,request):
        goods=Goods.objects.all()
        form=GoodForm()
        context={
            'goods':goods,
            'form':form,
        }
        return render(request,'goods.html',context)

    def post(self,request):
        pass
